/*
 * EngineBase.cpp
 *
 *  Created on: Jan 27, 2013
 *      Author: Drew Prevost
 */

#include "ThreadEngineBase.h"

ThreadEngineBase::ThreadEngineBase(
                                    ThreadServoRate & threadServoExhaust,
                                    uint8_t nPinGlowPlug,
                                    uint8_t nPinGenConnect,
                                    uint8_t nPinStarterMotor,
                                    uint8_t nPinGenDisonnect,
                                    uint8_t nPinGenMonitor )
    : threadServoExhaust( threadServoExhaust )
{
  this->nPinGlowPlug = nPinGlowPlug;
  this->nPinGenConnect = nPinGenConnect;
  this->nPinStarterMotor = nPinStarterMotor;
  this->nPinGenDisonnect = nPinGenDisonnect;
  this->nPinGenMonitor = nPinGenMonitor;

  pinMode( nPinGlowPlug, OUTPUT );
  pinMode( nPinGenConnect, OUTPUT );
  pinMode( nPinStarterMotor, OUTPUT );
  pinMode( nPinGenDisonnect, OUTPUT );
  pinMode( nPinGenMonitor, INPUT );
}

ThreadEngineBase::~ThreadEngineBase()
{

}

